package test.my.com.myapplicationtest.zhe_xian_tu_view.DynamicPathView.draw.model;

/**
 * Author : Cooper
 * Time : 2016/10/9  17:45
 * Description : 矩形
 */

public class RectModel extends DrawBaseModel {
    private float leftX;
    private float topY;
    private float rightX;
    private float bottomY;

    public RectModel(float leftX, float topY, float rightX, float bottomY,int color) {
        this.leftX = leftX;
        this.topY = topY;
        this.rightX = rightX;
        this.bottomY = bottomY;
        this.setColor(color);
    }

    public float getLeftX() {
        return leftX;
    }

    public void setLeftX(float leftX) {
        this.leftX = leftX;
    }

    public float getTopY() {
        return topY;
    }

    public void setTopY(float topY) {
        this.topY = topY;
    }

    public float getRightX() {
        return rightX;
    }

    public void setRightX(float rightX) {
        this.rightX = rightX;
    }

    public float getBottomY() {
        return bottomY;
    }

    public void setBottomY(float bottomY) {
        this.bottomY = bottomY;
    }
}
